package com.erp.user.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.user.domain.ErpDistributionUser;
import com.erp.user.domain.bo.ErpDistributionUserBo;
import com.erp.user.domain.vo.ErpDistributionUserVo;
import com.ruoyi.common.core.annotation.DataColumn;
import com.ruoyi.common.core.annotation.DataPermission;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 分销员开户信息Mapper接口
 * @Author: j.zh
 * @Date: 2024/5/2
 * @Version: 4.0.0
**/
public interface ErpDistributionUserMapper extends BaseMapperPlus<ErpDistributionUserMapper, ErpDistributionUser, ErpDistributionUserVo> {

    @DataPermission({ @DataColumn(key = "deptName", value = "a.dept_id") })
    Page<ErpDistributionUserVo> selectVoPageByUser(@Param("page") Page<ErpDistributionUser> page,
                                                   @Param("bo") ErpDistributionUserBo bo);


    ErpDistributionUserVo selectVoByDistributionId(@Param("distributionId") Long distributionId);
}
